# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=dnstap-ldns
pkgver=0.2.1
pkgrel=0
pkgdesc="Reference dnstap decoding utility"
url="https://github.com/dnstap/dnstap-ldns"
arch="all"
license="Apache-2.0"
makedepends="
	autoconf
	automake
	fstrm-dev
	ldns-dev
	protobuf-c-dev
	"
source="https://github.com/dnstap/dnstap-ldns/archive/v$pkgver/dnstap-ldns-$pkgver.tar.gz"
options="!check"  # no tests provided

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
33040e78ffaefaa6fc996ae246b5b5341fd4ad4271a20be34bb53ccf4fd2cc96fb196a02b7a396b3cfd081e64486134baeef5b96c38143e581ff79f89806fea3  dnstap-ldns-0.2.1.tar.gz
"
